const files = require.context('./modules', true, /\.js$/);
const modules = [];
files.keys().forEach(key => {
  modules.push(files(key).default);
});
// console.dir(modules)
let children = [];
modules.forEach(item => {
  item.children.forEach(items => {
    children.push(items);
  });
});
// console.log(children)

export default modules;
